package com.debao;

import com.debao.common.annotation.Anonymous;
import com.debao.common.constant.Constants;
import com.debao.common.core.domain.AjaxResult;
import com.debao.system.domain.Banner;
import com.debao.system.domain.Coach;
import com.debao.system.domain.Stadium;
import com.debao.system.service.IBannerService;
import com.debao.system.service.ICoachService;
import com.debao.system.service.IConfigService;
import com.debao.system.service.IStadiumService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;

/**
 * 首页
 */
@RestController
@RequestMapping("/api/config")
public class ApiConfig {
    @Resource
    private IConfigService configService;


    /**
     * 教练入驻费用 【分】
     *
     * @return
     */
    @GetMapping("/enterFee")
    @Anonymous
    public AjaxResult enterFee() {
        String value = configService.selectValueByKey(Constants.ENTER_FEE);
        return AjaxResult.success("查询成功", value);
    }

}
